# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=delorean
pkgver=16.0291151
pkgrel=3
groups=('blackarch' 'blackarch-exploitation' 'blackarch-proxy')
pkgdesc='NTP Main-in-the-Middle tool.'
arch=('any')
url='https://github.com/PentesterES/Delorean'
license=('custom:unknown')
depends=('python2' 'python2-scapy')
makedepends=('git')
source=("$pkgname::git+https://github.com/PentesterES/Delorean.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

